"""xiaomishop URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path
from . import views
urlpatterns = [
    path('check/username/<str:name>/',views.CheckUsername.as_view()),
    path('check/mobile/<str:mobile>/', views.CheckMobile.as_view()),  # 手机号
    path('register/', views.UserRegister.as_view()),  # 注册
    path('image_code/<str:imagecodeid>/', views.GenerateImageCode.as_view()), # 生成图片验证码
    path('check_image_code/',views.CheckLmageCode.as_view()) ,    # 验证图片验证码
    path('login/',views.Login.as_view()),     # 登陆
    path('logout/',views.Logout.as_view()),     # 退出登录
    path('getUserInfo/',views.UserInfo.as_view()), # 获取用户信息
    path('add_addrerss/', views.AddAddress.as_view()),   # 添加收货地址
    path('updateUserInfo/', views.UpdateUserInfo.as_view()),  # 修改用户信息
    path('deladdress/', views.DelAddressInfo.as_view()),  # 删除地址
    path('updatePassword/', views.UpdatePassword.as_view()),  # 修改密码

]
